{include file="common/_header-css"}
{include file="common/_jQuery"}
<body>
<div class="x-nav">
            <span class="layui-breadcrumb">
                <a>首页</a>
                <a>题库管理</a>
                <a>
                    <cite>题库选择</cite>
                </a>
            </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" onclick="location.reload()" title="刷新">
        <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i>
    </a>
</div>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card" style="height: 300px;">
                <div class="layui-card-body ">
                    <hr>
                    <blockquote class="layui-elem-quote"><h2>题库选择</h2></blockquote>
                </div>
                <div class="layui-card-body" style="">
                    <form class="layui-form layui-col-space5">

                        <div class="layui-input-inline layui-show-xs-block" style="margin-left: 50px;margin-top: 10px;">
                            <select name="department_id">
                                {volist name="list" id='vo'}
                                <option value="{$vo.id}" data-name="{$vo.department}">{$vo.department}</option>
                                {volist name='$vo.tree' id='tree_vo'}
                                <option value="{$tree_vo.id}" data-name="{$tree_vo.department}">&nbsp;&nbsp;| --&nbsp;{$tree_vo.department}</option>
                                {volist name='$tree_vo.tree' id='tree_one_vo'}
                                <option value="{$tree_one_vo.id}" data-name="{$tree_one_vo.department}">&nbsp;&nbsp;| --&nbsp;&nbsp;| --&nbsp;{$tree_one_vo.department}</option>
                                {/volist}
                                {/volist}
                                {/volist}
                            </select>
                        </div>
                        <div class="layui-input-inline layui-show-xs-block" style="margin-top: 10px;">
                            <button class="layui-btn" type="button">
                                <i class="layui-icon">&#xe615;</i>
                            </button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script>
    layui.use(['laydate', 'form']);
    $('button').on('click',function () {
        window.location.href='{:url(\'question/index\')}?department_id='+$("select option:selected").val()+'&department_name='+$("select option:selected").attr('data-name');
    })
</script>
</html>